home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-04-22 | 5.5 KB | [ONLN/HLX2] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Apr 22 06:38:38 1993, modified Thu Apr 22 06:38:38 1993, creator 'HLX2', type 'ONLN', 4160 bytes "Shillace Sound Sample Code" , at 0x10c0 1254 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [ONLN] |
macFileCreator | [HLX2] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1a 53 68 69 6c 6c 61 | 63 65 20 53 6f 75 6e 64 |..Shilla|ce Sound|
|00000010| 20 53 61 6d 70 6c 65 20 | 43 6f 64 65 00 00 00 00 | Sample |Code....|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 00 10 40 00 | 00 04 e6 a7 fc 26 2e a7 |......@.|.....&..|
|00000060| fc 26 2e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.&......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d6 df 00 00 |........|........|
|00000080| 53 6f 75 6e 64 20 45 76 | 65 6e 74 20 53 61 6d 70 |Sound Ev|ent Samp|
|00000090| 6c 65 20 43 6f 64 65 0d | 42 79 20 53 61 6d 20 53 |le Code.|By Sam S|
|000000a0| 63 68 69 6c 6c 61 63 65 | 20 0d 20 0d 2f 2a 20 41 |chillace| . ./* A|
|000000b0| 73 20 66 61 72 20 61 73 | 20 73 6f 75 6e 64 20 63 |s far as| sound c|
|000000c0| 6f 64 65 20 67 6f 65 73 | 2c 20 74 68 65 72 65 20 |ode goes|, there |
|000000d0| 61 72 65 2c 20 6f 66 20 | 63 6f 75 72 73 65 2c 20 |are, of |course, |
|000000e0| 73 6f 6d 65 20 65 6e 75 | 6d 73 3a 20 2a 2f 0d 65 |some enu|ms: */.e|
|000000f0| 6e 75 6d 20 53 6f 75 6e | 64 50 72 69 6f 72 69 74 |num Soun|dPriorit|
|00000100| 79 0d 09 7b 0d 09 73 70 | 56 65 72 79 4c 6f 77 2c |y..{..sp|VeryLow,|
|00000110| 0d 09 73 70 4c 6f 77 2c | 0d 09 73 70 4d 65 64 69 |..spLow,|..spMedi|
|00000120| 75 6d 2c 0d 09 73 70 48 | 69 67 68 2c 0d 09 73 70 |um,..spH|igh,..sp|
|00000130| 41 6c 61 72 6d 0d 09 7d | 3b 0d 09 0d 20 2f 2a 20 |Alarm..}|;... /* |
|00000140| 64 75 72 61 74 69 6f 6e | 20 63 61 6e 20 62 65 20 |duration| can be |
|00000150| 61 20 73 65 74 20 6f 66 | 20 63 6f 6e 73 74 61 6e |a set of| constan|
|00000160| 74 73 20 6f 72 20 61 6e | 20 65 6e 75 6d 20 6f 72 |ts or an| enum or|
|00000170| 20 77 68 61 74 65 76 65 | 72 3a 20 2a 2f 0d 63 6f | whateve|r: */.co|
|00000180| 6e 73 74 20 73 68 6f 72 | 74 20 76 65 72 79 53 68 |nst shor|t verySh|
|00000190| 6f 72 74 44 75 72 61 74 | 69 6f 6e 20 3d 20 33 3b |ortDurat|ion = 3;|
|000001a0| 20 0d 63 6f 6e 73 74 20 | 73 68 6f 72 74 20 73 68 | .const |short sh|
|000001b0| 6f 72 74 44 75 72 61 74 | 69 6f 6e 20 3d 20 35 3b |ortDurat|ion = 5;|
|000001c0| 0d 63 6f 6e 73 74 20 73 | 68 6f 72 74 20 6e 6f 72 |.const s|hort nor|
|000001d0| 6d 61 6c 44 75 72 61 74 | 69 6f 6e 20 3d 20 33 30 |malDurat|ion = 30|
|000001e0| 3b 0d 2f 2a 20 70 65 72 | 73 69 73 74 65 6e 63 65 |;./* per|sistence|
|000001f0| 20 69 73 20 74 68 65 20 | 73 61 6d 65 2e 2e 2e 2a | is the |same...*|
|00000200| 2f 0d 2f 2a 20 49 66 20 | 79 6f 75 20 6c 69 6b 65 |/./* If |you like|
|00000210| 2c 20 65 61 63 68 20 73 | 6f 75 6e 64 73 20 70 61 |, each s|ounds pa|
|00000220| 72 61 6d 65 74 65 72 73 | 20 63 61 6e 20 62 65 20 |rameters| can be |
|00000230| 73 65 74 20 70 72 6f 67 | 72 61 6d 6d 61 74 69 63 |set prog|rammatic|
|00000240| 61 6c 6c 79 2c 20 6f 72 | 20 74 68 65 79 20 63 61 |ally, or| they ca|
|00000250| 6e 20 62 65 20 68 61 72 | 64 63 6f 64 65 64 2e 20 |n be har|dcoded. |
|00000260| 2a 2f 0d 2f 2a 20 54 68 | 65 20 62 61 73 69 63 20 |*/./* Th|e basic |
|00000270| 63 61 6c 6c 20 74 6f 20 | 70 6c 61 79 20 61 20 73 |call to |play a s|
|00000280| 6f 75 6e 64 20 69 73 20 | 76 65 72 79 20 73 69 6d |ound is |very sim|
|00000290| 70 6c 65 3a 20 20 2a 2f | 0d 2f 2a 20 59 6f 75 20 |ple: */|./* You |
|000002a0| 63 61 6e 20 61 6c 73 6f | 20 68 61 76 65 20 61 20 |can also| have a |
|000002b0| 76 65 72 73 69 6f 6e 20 | 6f 66 20 74 68 69 73 20 |version |of this |
|000002c0| 74 68 61 74 20 74 61 6b | 65 73 20 70 61 72 61 6d |that tak|es param|
|000002d0| 65 74 65 72 73 20 66 6f | 72 20 68 6f 77 20 74 68 |eters fo|r how th|
|000002e0| 65 20 73 6f 75 6e 64 20 | 73 68 6f 75 6c 64 20 62 |e sound |should b|
|000002f0| 65 20 63 75 72 72 65 6e | 74 6c 79 0d 20 2a 20 70 |e curren|tly. * p|
|00000300| 6c 61 79 65 64 20 28 69 | 6e 20 74 68 69 73 20 69 |layed (i|n this i|
|00000310| 6e 73 74 61 6e 63 65 29 | 2e 20 57 65 20 6e 65 76 |nstance)|. We nev|
|00000320| 65 72 20 66 6f 75 6e 64 | 20 74 68 61 74 20 6e 65 |er found| that ne|
|00000330| 63 65 73 73 61 72 79 2c | 20 74 68 6f 75 67 68 2e |cessary,| though.|
|00000340| 0d 20 2a 2f 0d 76 6f 69 | 64 20 50 6c 61 79 54 68 |. */.voi|d PlayTh|
|00000350| 69 73 53 6f 75 6e 64 28 | 73 68 6f 72 74 20 74 68 |isSound(|short th|
|00000360| 65 53 6f 75 6e 64 49 6e | 64 65 78 29 0d 09 7b 0d |eSoundIn|dex)..{.|
|00000370| 09 2f 2f 41 6c 6c 20 74 | 68 69 73 20 64 6f 65 73 |.//All t|his does|
|00000380| 20 69 73 20 65 6e 74 65 | 72 20 74 68 65 20 72 65 | is ente|r the re|
|00000390| 71 75 65 73 74 20 69 6e | 74 6f 20 74 68 65 20 73 |quest in|to the s|
|000003a0| 6f 75 6e 64 20 71 75 65 | 75 65 2c 20 6e 6f 74 69 |ound que|ue, noti|
|000003b0| 6e 67 20 74 68 65 20 74 | 69 6d 65 2e 20 0d 09 7d |ng the t|ime. ..}|
|000003c0| 0d 09 0d 09 0d 2f 2a 20 | 54 68 65 6e 2c 20 6f 6e |...../* |Then, on|
|000003d0| 63 65 20 70 65 72 20 65 | 76 65 6e 74 20 6c 6f 6f |ce per e|vent loo|
|000003e0| 70 20 28 65 76 65 72 79 | 20 66 65 77 20 74 69 63 |p (every| few tic|
|000003f0| 6b 73 29 2c 20 77 65 20 | 74 65 6c 6c 20 74 68 65 |ks), we |tell the|
|00000400| 20 73 6f 75 6e 64 20 63 | 6f 64 65 20 74 6f 20 75 | sound c|ode to u|
|00000410| 70 64 61 74 65 20 74 68 | 65 20 71 75 65 75 65 3a |pdate th|e queue:|
|00000420| 20 2a 2f 0d 76 6f 69 64 | 20 50 6c 61 79 53 6f 75 | */.void| PlaySou|
|00000430| 6e 64 73 46 72 6f 6d 51 | 75 65 75 65 28 29 0d 09 |ndsFromQ|ueue()..|
|00000440| 7b 0d 09 69 66 20 28 74 | 68 65 72 65 20 69 73 20 |{..if (t|here is |
|00000450| 6e 6f 20 73 6f 75 6e 64 | 20 70 6c 61 79 69 6e 67 |no sound| playing|
|00000460| 20 72 69 67 68 74 20 6e | 6f 77 29 0d 09 09 7b 0d | right n|ow)...{.|
|00000470| 09 09 2f 2f 70 6c 61 79 | 20 74 68 65 20 68 69 67 |..//play| the hig|
|00000480| 68 65 73 74 20 70 72 69 | 6f 72 69 74 79 20 73 6f |hest pri|ority so|
|00000490| 75 6e 64 20 69 6e 20 74 | 68 65 20 71 75 65 75 65 |und in t|he queue|
|000004a0| 20 74 68 61 74 20 69 73 | 20 73 74 69 6c 6c 20 76 | that is| still v|
|000004b0| 61 6c 69 64 0d 09 09 7d | 0d 09 65 6c 73 65 0d 09 |alid...}|..else..|
|000004c0| 09 7b 0d 09 09 2f 2f 74 | 72 79 20 74 6f 20 69 6e |.{...//t|ry to in|
|000004d0| 74 65 72 72 75 70 74 20 | 74 68 65 20 63 75 72 72 |terrupt |the curr|
|000004e0| 65 6e 74 20 73 6f 75 6e | 64 3a 20 69 66 20 69 74 |ent soun|d: if it|
|000004f0| 20 69 73 20 70 61 73 74 | 20 74 68 65 20 6d 69 6e | is past| the min|
|00000500| 69 6d 75 6d 20 70 65 72 | 73 69 73 74 65 6e 63 65 |imum per|sistence|
|00000510| 2c 20 61 6e 64 20 74 68 | 65 72 65 20 69 73 20 0d |, and th|ere is .|
|00000520| 09 09 2f 2f 61 20 76 61 | 6c 69 64 20 73 6f 75 6e |..//a va|lid soun|
|00000530| 64 20 69 6e 20 74 68 65 | 20 71 75 65 75 65 20 74 |d in the| queue t|
|00000540| 68 61 74 20 69 73 20 68 | 69 67 68 65 72 20 70 72 |hat is h|igher pr|
|00000550| 69 6f 72 69 74 79 2c 20 | 74 68 65 6e 20 6b 69 6c |iority, |then kil|
|00000560| 6c 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 73 6f |l the cu|rrent so|
|00000570| 75 6e 64 2c 20 61 6e 64 | 20 70 6c 61 79 0d 09 09 |und, and| play...|
|00000580| 2f 2f 74 68 65 20 6e 65 | 77 20 6f 6e 65 0d 09 09 |//the ne|w one...|
|00000590| 7d 0d 09 09 0d 09 2f 2f | 65 76 65 72 79 20 31 30 |}.....//|every 10|
|000005a0| 20 63 61 6c 6c 73 20 6f | 72 20 73 6f 2c 20 72 65 | calls o|r so, re|
|000005b0| 6d 6f 76 65 20 61 6c 6c | 20 74 68 65 20 69 6e 76 |move all| the inv|
|000005c0| 61 6c 69 64 20 73 6f 75 | 6e 64 73 20 66 72 6f 6d |alid sou|nds from|
|000005d0| 20 74 68 65 20 71 75 65 | 75 65 2e 20 0d 09 7d 0d | the que|ue. ..}.|
|000005e0| 09 0d 09 0d 20 0d 0a da | 00 00 00 00 02 d7 02 23 |.... ...|.......#|
|000005f0| 00 11 02 ff 0c 00 ff ff | ff ff 00 00 00 00 00 00 |........|........|
|00000600| 00 00 02 23 00 00 02 d7 | 00 00 00 00 00 00 00 0c |...#....|........|
|00000610| 00 1e 00 1f 00 01 00 0a | 00 00 00 00 03 de 02 fd |........|........|
|00000620| 00 2c 00 08 00 14 05 54 | 69 6d 65 73 00 03 00 14 |.,.....T|imes....|
|00000630| 00 04 03 00 00 0d 00 24 | 00 2e 00 04 00 00 ff 00 |.......$|........|
|00000640| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 00 00 00 29 |...d..ON|LN.d...)|
|00000650| 00 3c 00 4d 01 c7 00 2b | 5a 63 17 53 6f 75 6e 64 |.<.M...+|Zc.Sound|
|00000660| 20 45 76 65 6e 74 20 53 | 61 6d 70 6c 65 20 43 6f | Event S|ample Co|
|00000670| 64 65 00 04 02 00 00 0d | 00 0e 00 a1 00 64 00 10 |de......|.....d..|
|00000680| 4f 4e 4c 4e 00 64 00 18 | 00 63 00 3c 00 71 00 9d |ONLN.d..|.c.<.q..|
|00000690| 00 2a 2a 10 42 79 20 53 | 61 6d 20 53 63 68 69 6c |.**.By S|am Schil|
|000006a0| 6c 61 63 65 00 2c 00 0a | 00 16 07 43 6f 75 72 69 |lace.,..|...Couri|
|000006b0| 65 72 00 03 00 16 00 04 | 00 00 00 0d 00 0a 00 a1 |er......|........|
|000006c0| 00 64 00 10 4f 4e 4c 4e | 00 64 00 2c 00 92 00 3c |.d..ONLN|.d.,...<|
|000006d0| 00 9e 01 c8 00 2a 2d 42 | 2f 2a 20 41 73 20 66 61 |.....*-B|/* As fa|
|000006e0| 72 20 61 73 20 73 6f 75 | 6e 64 20 63 6f 64 65 20 |r as sou|nd code |
|000006f0| 67 6f 65 73 2c 20 74 68 | 65 72 65 20 61 72 65 2c |goes, th|ere are,|
|00000700| 20 6f 66 20 63 6f 75 72 | 73 65 2c 20 73 6f 6d 65 | of cour|se, some|
|00000710| 20 65 6e 75 6d 73 3a 20 | 2a 2f 00 a1 00 64 00 10 | enums: |*/...d..|
|00000720| 4f 4e 4c 4e 00 64 00 6f | 00 a8 00 3c 00 b4 00 a8 |ONLN.d.o|...<....|
|00000730| 00 2a 16 12 65 6e 75 6d | 20 53 6f 75 6e 64 50 72 |.*..enum| SoundPr|
|00000740| 69 6f 72 69 74 79 00 a1 | 00 64 00 10 4f 4e 4c 4e |iority..|.d..ONLN|
|00000750| 00 64 00 83 00 b3 00 4e | 00 bf 00 54 00 2b 12 0b |.d.....N|...T.+..|
|00000760| 01 7b 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 00 86 |.{...d..|ONLN.d..|
|00000770| 00 be 00 4e 00 ca 00 8a | 00 2a 0b 0a 73 70 56 65 |...N....|.*..spVe|
|00000780| 72 79 4c 6f 77 2c 00 a1 | 00 64 00 10 4f 4e 4c 4e |ryLow,..|.d..ONLN|
|00000790| 00 64 00 92 00 c9 00 4e | 00 d5 00 72 00 2a 0b 06 |.d.....N|...r.*..|
|000007a0| 73 70 4c 6f 77 2c 00 a1 | 00 64 00 10 4f 4e 4c 4e |spLow,..|.d..ONLN|
|000007b0| 00 64 00 9a 00 d4 00 4e | 00 e0 00 84 00 2a 0b 09 |.d.....N|.....*..|
|000007c0| 73 70 4d 65 64 69 75 6d | 2c 00 00 a1 00 64 00 10 |spMedium|,....d..|
|000007d0| 4f 4e 4c 4e 00 64 00 a5 | 00 df 00 4e 00 eb 00 78 |ONLN.d..|...N...x|
|000007e0| 00 2a 0b 07 73 70 48 69 | 67 68 2c 00 00 a1 00 64 |.*..spHi|gh,....d|
|000007f0| 00 10 4f 4e 4c 4e 00 64 | 00 ae 00 ea 00 4e 00 f6 |..ONLN.d|.....N..|
|00000800| 00 78 00 2a 0b 07 73 70 | 41 6c 61 72 6d 00 00 a1 |.x.*..sp|Alarm...|
|00000810| 00 64 00 10 4f 4e 4c 4e | 00 64 00 b7 00 f5 00 4e |.d..ONLN|.d.....N|
|00000820| 01 01 00 5a 00 2a 0b 02 | 7d 3b 00 a1 00 64 00 10 |...Z.*..|};...d..|
|00000830| 4f 4e 4c 4e 00 64 00 bc | 01 0b 00 3c 01 17 01 c2 |ONLN.d..|...<....|
|00000840| 00 28 01 33 00 5a 41 20 | 2f 2a 20 64 75 72 61 74 |.(.3.ZA |/* durat|
|00000850| 69 6f 6e 20 63 61 6e 20 | 62 65 20 61 20 73 65 74 |ion can |be a set|
|00000860| 20 6f 66 20 63 6f 6e 73 | 74 61 6e 74 73 20 6f 72 | of cons|tants or|
|00000870| 20 61 6e 20 65 6e 75 6d | 20 6f 72 20 77 68 61 74 | an enum| or what|
|00000880| 65 76 65 72 3a 20 2a 2f | 00 a1 00 64 00 10 4f 4e |ever: */|...d..ON|
|00000890| 4c 4e 00 64 00 fe 01 16 | 00 3c 01 22 01 08 00 2a |LN.d....|.<."...*|
|000008a0| 0b 22 63 6f 6e 73 74 20 | 73 68 6f 72 74 20 76 65 |."const |short ve|
|000008b0| 72 79 53 68 6f 72 74 44 | 75 72 61 74 69 6f 6e 20 |ryShortD|uration |
|000008c0| 3d 20 33 3b 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |= 3;...d|..ONLN.d|
|000008d0| 01 22 01 21 00 3c 01 2d | 00 f0 00 2a 0b 1e 63 6f |.".!.<.-|...*..co|
|000008e0| 6e 73 74 20 73 68 6f 72 | 74 20 73 68 6f 72 74 44 |nst shor|t shortD|
|000008f0| 75 72 61 74 69 6f 6e 20 | 3d 20 35 3b 00 a1 00 64 |uration |= 5;...d|
|00000900| 00 10 4f 4e 4c 4e 00 64 | 01 41 01 2c 00 3c 01 38 |..ONLN.d|.A.,.<.8|
|00000910| 00 fc 00 2a 0b 20 63 6f | 6e 73 74 20 73 68 6f 72 |...*. co|nst shor|
|00000920| 74 20 6e 6f 72 6d 61 6c | 44 75 72 61 74 69 6f 6e |t normal|Duration|
|00000930| 20 3d 20 33 30 3b 00 a1 | 00 64 00 10 4f 4e 4c 4e | = 30;..|.d..ONLN|
|00000940| 00 64 01 62 01 42 00 3c | 01 4e 00 f6 00 2a 16 1f |.d.b.B.<|.N...*..|
|00000950| 2f 2a 20 70 65 72 73 69 | 73 74 65 6e 63 65 20 69 |/* persi|stence i|
|00000960| 73 20 74 68 65 20 73 61 | 6d 65 2e 2e 2e 2a 2f 00 |s the sa|me...*/.|
|00000970| 00 06 00 00 e2 76 00 a1 | 00 64 00 10 4f 4e 4c 4e |.....v..|.d..ONLN|
|00000980| 00 64 01 82 01 63 00 3c | 01 6f 02 21 00 2a 21 4f |.d...c.<|.o.!.*!O|
|00000990| 2f 2a 20 49 66 20 79 6f | 75 20 6c 69 6b 65 2c 20 |/* If yo|u like, |
|000009a0| 65 61 63 68 20 73 6f 75 | 6e 64 73 20 70 61 72 61 |each sou|nds para|
|000009b0| 6d 65 74 65 72 73 20 63 | 61 6e 20 62 65 20 73 65 |meters c|an be se|
|000009c0| 74 20 70 72 6f 67 72 61 | 6d 6d 61 74 69 63 61 6c |t progra|mmatical|
|000009d0| 6c 79 2c 20 6f 72 20 74 | 68 65 79 20 63 61 6e 00 |ly, or t|hey can.|
|000009e0| 00 06 00 00 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|000009f0| 00 64 01 d2 01 6e 00 3c | 01 7a 00 9c 00 2a 0b 10 |.d...n.<|.z...*..|
|00000a00| 62 65 20 68 61 72 64 63 | 6f 64 65 64 2e 20 2a 2f |be hardc|oded. */|
|00000a10| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 01 e3 01 84 |...d..ON|LN.d....|
|00000a20| 00 3c 01 90 01 7a 00 2a | 16 35 2f 2a 20 54 68 65 |.<...z.*|.5/* The|
|00000a30| 20 62 61 73 69 63 20 63 | 61 6c 6c 20 74 6f 20 70 | basic c|all to p|
|00000a40| 6c 61 79 20 61 20 73 6f | 75 6e 64 20 69 73 20 76 |lay a so|und is v|
|00000a50| 65 72 79 20 73 69 6d 70 | 6c 65 3a 20 20 2a 2f 00 |ery simp|le: */.|
|00000a60| 00 06 00 01 2a aa 00 a1 | 00 64 00 10 4f 4e 4c 4e |....*...|.d..ONLN|
|00000a70| 00 64 02 19 01 8f 00 3c | 01 9b 02 21 00 2a 0b 4e |.d.....<|...!.*.N|
|00000a80| 2f 2a 20 59 6f 75 20 63 | 61 6e 20 61 6c 73 6f 20 |/* You c|an also |
|00000a90| 68 61 76 65 20 61 20 76 | 65 72 73 69 6f 6e 20 6f |have a v|ersion o|
|00000aa0| 66 20 74 68 69 73 20 74 | 68 61 74 20 74 61 6b 65 |f this t|hat take|
|00000ab0| 73 20 70 61 72 61 6d 65 | 74 65 72 73 20 66 6f 72 |s parame|ters for|
|00000ac0| 20 68 6f 77 20 74 68 65 | 20 73 6f 75 6e 64 00 06 | how the| sound..|
|00000ad0| 00 00 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00000ae0| 02 68 01 9a 00 3c 01 a6 | 00 ae 00 2a 0b 13 73 68 |.h...<..|...*..sh|
|00000af0| 6f 75 6c 64 20 62 65 20 | 63 75 72 72 65 6e 74 6c |ould be |currentl|
|00000b00| 79 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 02 7c |y....d..|ONLN.d.||
|00000b10| 01 a5 00 3c 01 b1 01 d4 | 00 2a 0b 44 20 2a 20 70 |...<....|.*.D * p|
|00000b20| 6c 61 79 65 64 20 28 69 | 6e 20 74 68 69 73 20 69 |layed (i|n this i|
|00000b30| 6e 73 74 61 6e 63 65 29 | 2e 20 57 65 20 6e 65 76 |nstance)|. We nev|
|00000b40| 65 72 20 66 6f 75 6e 64 | 20 74 68 61 74 20 6e 65 |er found| that ne|
|00000b50| 63 65 73 73 61 72 79 2c | 20 74 68 6f 75 67 68 2e |cessary,| though.|
|00000b60| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 02 c1 01 b0 |...d..ON|LN.d....|
|00000b70| 00 3c 01 bc 00 4e 00 2a | 0b 03 20 2a 2f 00 00 a1 |.<...N.*|.. */...|
|00000b80| 00 64 00 10 4f 4e 4c 4e | 00 64 02 c5 01 bb 00 3c |.d..ONLN|.d.....<|
|00000b90| 01 c7 01 26 00 2a 0b 27 | 76 6f 69 64 20 50 6c 61 |...&.*.'|void Pla|
|00000ba0| 79 54 68 69 73 53 6f 75 | 6e 64 28 73 68 6f 72 74 |yThisSou|nd(short|
|00000bb0| 20 74 68 65 53 6f 75 6e | 64 49 6e 64 65 78 29 00 | theSoun|dIndex).|
|00000bc0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 02 ee 01 c6 |...d..ON|LN.d....|
|00000bd0| 00 4e 01 d2 00 54 00 2b | 12 0b 01 7b 00 a1 00 64 |.N...T.+|...{...d|
|00000be0| 00 10 4f 4e 4c 4e 00 64 | 02 f1 01 d1 00 4e 01 dd |..ONLN.d|.....N..|
|00000bf0| 02 10 00 2a 0b 4b 2f 2f | 41 6c 6c 20 74 68 69 73 |...*.K//|All this|
|00000c00| 20 64 6f 65 73 20 69 73 | 20 65 6e 74 65 72 20 74 | does is| enter t|
|00000c10| 68 65 20 72 65 71 75 65 | 73 74 20 69 6e 74 6f 20 |he reque|st into |
|00000c20| 74 68 65 20 73 6f 75 6e | 64 20 71 75 65 75 65 2c |the soun|d queue,|
|00000c30| 20 6e 6f 74 69 6e 67 20 | 74 68 65 20 74 69 6d 65 | noting |the time|
|00000c40| 2e 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 03 3f |.....d..|ONLN.d.?|
|00000c50| 01 dc 00 4e 01 e8 00 54 | 00 2a 0b 01 7d 00 00 06 |...N...T|.*..}...|
|00000c60| 00 00 5d dd 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |..]....d|..ONLN.d|
|00000c70| 03 45 01 fd 00 3c 02 09 | 02 21 00 28 02 25 00 5a |.E...<..|.!.(.%.Z|
|00000c80| 50 2f 2a 20 54 68 65 6e | 2c 20 6f 6e 63 65 20 70 |P/* Then|, once p|
|00000c90| 65 72 20 65 76 65 6e 74 | 20 6c 6f 6f 70 20 28 65 |er event| loop (e|
|00000ca0| 76 65 72 79 20 66 65 77 | 20 74 69 63 6b 73 29 2c |very few| ticks),|
|00000cb0| 20 77 65 20 74 65 6c 6c | 20 74 68 65 20 73 6f 75 | we tell| the sou|
|00000cc0| 6e 64 20 63 6f 64 65 20 | 74 6f 20 75 70 64 61 74 |nd code |to updat|
|00000cd0| 65 00 00 06 00 00 00 00 | 00 a1 00 64 00 10 4f 4e |e.......|...d..ON|
|00000ce0| 4c 4e 00 64 03 96 02 08 | 00 3c 02 14 00 8a 00 2a |LN.d....|.<.....*|
|00000cf0| 0b 0d 74 68 65 20 71 75 | 65 75 65 3a 20 2a 2f 00 |..the qu|eue: */.|
|00000d00| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 03 a4 02 13 |...d..ON|LN.d....|
|00000d10| 00 3c 02 1f 00 d8 00 2a | 0b 1a 76 6f 69 64 20 50 |.<.....*|..void P|
|00000d20| 6c 61 79 53 6f 75 6e 64 | 73 46 72 6f 6d 51 75 65 |laySound|sFromQue|
|00000d30| 75 65 28 29 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |ue()...d|..ONLN.d|
|00000d40| 03 c0 02 1e 00 4e 02 2a | 00 54 00 2b 12 0b 01 7b |.....N.*|.T.+...{|
|00000d50| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 03 c3 02 29 |...d..ON|LN.d...)|
|00000d60| 00 4e 02 35 01 3e 00 2a | 0b 28 69 66 20 28 74 68 |.N.5.>.*|.(if (th|
|00000d70| 65 72 65 20 69 73 20 6e | 6f 20 73 6f 75 6e 64 20 |ere is n|o sound |
|00000d80| 70 6c 61 79 69 6e 67 20 | 72 69 67 68 74 20 6e 6f |playing |right no|
|00000d90| 77 29 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 03 ee |w)...d..|ONLN.d..|
|00000da0| 02 34 00 72 02 40 00 78 | 00 2b 24 0b 01 7b 00 a1 |.4.r.@.x|.+$..{..|
|00000db0| 00 64 00 10 4f 4e 4c 4e | 00 64 03 f2 02 3f 00 72 |.d..ONLN|.d...?.r|
|00000dc0| 02 4b 01 fe 00 2a 0b 42 | 2f 2f 70 6c 61 79 20 74 |.K...*.B|//play t|
|00000dd0| 68 65 20 68 69 67 68 65 | 73 74 20 70 72 69 6f 72 |he highe|st prior|
|00000de0| 69 74 79 20 73 6f 75 6e | 64 20 69 6e 20 74 68 65 |ity soun|d in the|
|00000df0| 20 71 75 65 75 65 20 74 | 68 61 74 20 69 73 20 73 | queue t|hat is s|
|00000e00| 74 69 6c 6c 20 76 61 6c | 69 64 00 a1 00 64 00 10 |till val|id...d..|
|00000e10| 4f 4e 4c 4e 00 64 04 37 | 02 4a 00 72 02 56 00 78 |ONLN.d.7|.J.r.V.x|
|00000e20| 00 2a 0b 01 7d 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |.*..}...|.d..ONLN|
|00000e30| 00 64 04 3a 02 55 00 4e | 02 61 00 66 00 28 02 7d |.d.:.U.N|.a.f.(.}|
|00000e40| 00 6c 04 65 6c 73 65 00 | 00 a1 00 64 00 10 4f 4e |.l.else.|...d..ON|
|00000e50| 4c 4e 00 64 04 41 02 60 | 00 72 02 6c 00 78 00 2b |LN.d.A.`|.r.l.x.+|
|00000e60| 24 0b 01 7b 00 06 00 04 | dd 17 00 a1 00 64 00 10 |$..{....|.....d..|
|00000e70| 4f 4e 4c 4e 00 64 04 45 | 02 6b 00 72 02 77 02 21 |ONLN.d.E|.k.r.w.!|
|00000e80| 00 2a 0b 3f 2f 2f 74 72 | 79 20 74 6f 20 69 6e 74 |.*.?//tr|y to int|
|00000e90| 65 72 72 75 70 74 20 74 | 68 65 20 63 75 72 72 65 |errupt t|he curre|
|00000ea0| 6e 74 20 73 6f 75 6e 64 | 3a 20 69 66 20 69 74 20 |nt sound|: if it |
|00000eb0| 69 73 20 70 61 73 74 20 | 74 68 65 20 6d 69 6e 69 |is past |the mini|
|00000ec0| 6d 75 6d 00 00 06 00 00 | 00 00 00 a1 00 64 00 10 |mum.....|.....d..|
|00000ed0| 4f 4e 4c 4e 00 64 04 85 | 02 76 00 3c 02 82 00 d2 |ONLN.d..|.v.<....|
|00000ee0| 00 28 02 9e 00 5a 19 70 | 65 72 73 69 73 74 65 6e |.(...Z.p|ersisten|
|00000ef0| 63 65 2c 20 61 6e 64 20 | 74 68 65 72 65 20 69 73 |ce, and |there is|
|00000f00| 00 06 00 02 75 55 00 a1 | 00 64 00 10 4f 4e 4c 4e |....uU..|.d..ONLN|
|00000f10| 00 64 04 a2 02 81 00 72 | 02 8d 02 21 00 2b 36 0b |.d.....r|...!.+6.|
|00000f20| 43 2f 2f 61 20 76 61 6c | 69 64 20 73 6f 75 6e 64 |C//a val|id sound|
|00000f30| 20 69 6e 20 74 68 65 20 | 71 75 65 75 65 20 74 68 | in the |queue th|
|00000f40| 61 74 20 69 73 20 68 69 | 67 68 65 72 20 70 72 69 |at is hi|gher pri|
|00000f50| 6f 72 69 74 79 2c 20 74 | 68 65 6e 20 6b 69 6c 6c |ority, t|hen kill|
|00000f60| 20 74 68 65 00 06 00 00 | 00 00 00 a1 00 64 00 10 | the....|.....d..|
|00000f70| 4f 4e 4c 4e 00 64 04 e6 | 02 8c 00 3c 02 98 00 c6 |ONLN.d..|...<....|
|00000f80| 00 28 02 b4 00 5a 17 63 | 75 72 72 65 6e 74 20 73 |.(...Z.c|urrent s|
|00000f90| 6f 75 6e 64 2c 20 61 6e | 64 20 70 6c 61 79 00 a1 |ound, an|d play..|
|00000fa0| 00 64 00 10 4f 4e 4c 4e | 00 64 05 00 02 97 00 72 |.d..ONLN|.d.....r|
|00000fb0| 02 a3 00 c0 00 2b 36 0b | 0d 2f 2f 74 68 65 20 6e |.....+6.|.//the n|
|00000fc0| 65 77 20 6f 6e 65 00 a1 | 00 64 00 10 4f 4e 4c 4e |ew one..|.d..ONLN|
|00000fd0| 00 64 05 10 02 a2 00 72 | 02 ae 00 78 00 2a 0b 01 |.d.....r|...x.*..|
|00000fe0| 7d 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 05 16 |}....d..|ONLN.d..|
|00000ff0| 02 b8 00 4e 02 c4 01 ec | 00 28 02 e0 00 6c 45 2f |...N....|.(...lE/|
|00001000| 2f 65 76 65 72 79 20 31 | 30 20 63 61 6c 6c 73 20 |/every 1|0 calls |
|00001010| 6f 72 20 73 6f 2c 20 72 | 65 6d 6f 76 65 20 61 6c |or so, r|emove al|
|00001020| 6c 20 74 68 65 20 69 6e | 76 61 6c 69 64 20 73 6f |l the in|valid so|
|00001030| 75 6e 64 73 20 66 72 6f | 6d 20 74 68 65 20 71 75 |unds fro|m the qu|
|00001040| 65 75 65 2e 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |eue....d|..ONLN.d|
|00001050| 05 5e 02 c3 00 4e 02 cf | 00 54 00 2a 0b 01 7d 00 |.^...N..|.T.*..}.|
|00001060| 00 03 00 14 00 04 03 00 | 00 28 03 ac 00 48 24 20 |........|.(...H$ |
|00001070| 4d 61 63 69 6e 74 6f 73 | 68 20 47 61 6d 65 20 44 |Macintos|h Game D|
|00001080| 65 76 65 6c 6f 70 65 72 | 73 27 20 48 61 6e 64 62 |eveloper|s' Handb|
|00001090| 6f 6f 6b 00 00 28 03 ac | 02 ac 05 50 61 67 65 20 |ook..(..|...Page |
|000010a0| 00 15 8c 00 00 29 17 01 | 31 00 00 20 03 a1 00 46 |.....)..|1.. ...F|
|000010b0| 03 a1 02 da 00 20 03 a3 | 00 46 03 a3 02 da 00 ff |..... ..|.F......|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 01 00 00 00 03 c4 | 00 00 02 c4 00 00 01 22 |........|......."|
|00001110| 50 02 16 5a 1d 40 6c 01 | 42 46 41 6b 03 00 fe 30 |P..Z.@l.|BFAk...0|
|00001120| 06 52 46 bc 01 ff d8 59 | ba 0a 20 10 50 80 32 2e |.RF....Y|.. .P.2.|
|00001130| 1a 53 68 69 6c 6c 61 63 | 65 20 53 6f 75 6e 64 20 |.Shillac|e Sound |
|00001140| 53 61 6d 70 6c 65 20 43 | 6f 64 65 6e 02 00 00 00 |Sample C|oden....|
|00001150| 00 00 4f 4e 4c 4e 48 4c | 58 32 01 00 00 78 00 1f |..ONLNHL|X2...x..|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 a7 fc 26 2e 00 00 | 10 40 00 00 04 e6 c8 57 |....&...|.@.....W|
|00001180| 01 ff c8 5a 01 ff d0 59 | f2 20 13 c7 01 4e 91 91 |...Z...Y|. ...N..|
|00001190| 57 20 05 01 ff c8 50 01 | 03 6a 33 41 ea 30 37 45 |W ....P.|.j3A.07E|
|000011a0| 01 53 46 5a 01 ff d0 5a | ba 50 01 25 12 6d 02 4a |.SFZ...Z|.P.%.m.J|
|000011b0| 05 67 50 59 01 ff d0 58 | 01 08 28 5e 20 0b 01 67 |.gPY...X|..(^ ..g|
|000011c0| 3c 59 01 ff d0 58 d7 6a | 01 ff cc 5a 01 ff cc 57 |<Y...X.j|...Z...W|
|000011d0| 01 ff c0 50 12 04 d2 41 | ee 01 ff c0 6d 01 60 0c |...P...A|....m.`.|
|000011e0| 52 5a ba 50 01 24 f2 6d | 57 01 ff c0 50 14 04 e2 |RZ.P.$.m|W...P...|
|000011f0| 26 40 20 0b 58 8f 02 66 | e4 48 c6 59 ba 58 12 20 |&@ .X..f|.H.Y.X. |
|00001200| 00 00 00 10 00 00 05 66 | 00 00 0a da 00 00 00 00 |.......f|........|
|00001210| 00 00 05 5e 00 00 00 52 | 00 00 01 00 00 00 01 00 |...^...R|........|
|00001220| 00 00 00 00 00 00 00 1e | 00 32 41 40 0a a8 00 00 |........|.2A@....|
|00001230| 00 1c 00 1e ff ff fe 30 | 06 52 46 bc 01 4b 01 4c |.......0|.RF..K.L|
|00001240| 00 00 00 50 00 31 bc c0 | 00 26 00 05 7f ff 00 b4 |...P.1..|.&......|
|00001250| 00 00 00 40 00 31 bc c0 | 00 00 00 00 00 00 05 66 |...@.1..|.......f|
|00001260| 00 00 05 66 00 00 0a da | 00 01 00 00 00 1a 00 05 |...f....|........|
|00001270| 00 01 00 01 00 00 00 00 | 02 d7 02 23 00 00 05 66 |........|...#...f|
|00001280| 00 00 0a da 00 00 00 00 | 00 00 00 00 00 00 00 02 |........|........|
|00001290| 00 00 00 00 00 d8 00 01 | 00 00 00 00 ff ff 00 02 |........|........|
|000012a0| 00 00 00 01 ff ff 00 03 | 00 00 00 02 ff ff 00 04 |........|........|
|000012b0| 00 00 00 03 ff ff 00 05 | 00 00 00 04 ff ff 00 06 |........|........|
|000012c0| 00 00 00 05 ff ff 00 07 | 00 00 00 06 ff ff 00 08 |........|........|
|000012d0| 00 00 00 07 ff ff 00 09 | 00 00 00 08 ff ff 00 0a |........|........|
|000012e0| 00 00 00 09 ff ff 00 0b | 00 00 00 0a ff ff 00 0c |........|........|
|000012f0| 00 00 00 0b ff ff 00 0d | 00 00 00 0c ff ff 00 0e |........|........|
|00001300| 00 00 00 0d ff ff 00 0f | 00 00 00 0e ff ff 00 10 |........|........|
|00001310| 00 00 00 0f ff ff 00 11 | 00 00 00 10 ff ff 00 12 |........|........|
|00001320| 00 00 00 11 ff ff 00 13 | 00 00 00 12 ff ff 00 14 |........|........|
|00001330| 00 00 00 13 ff ff 00 15 | 00 00 00 14 ff ff 00 16 |........|........|
|00001340| 00 00 00 15 ff ff 00 17 | 00 00 00 16 ff ff 00 18 |........|........|
|00001350| 00 00 00 17 ff ff 00 19 | 00 00 00 18 ff ff 00 1a |........|........|
|00001360| 00 00 00 19 ff ff ff ff | 00 00 00 1a ff ff 00 00 |........|........|
|00001370| 00 3e 00 1b 07 53 79 6d | 62 6f 6c 73 01 41 01 42 |.>...Sym|bols.A.B|
|00001380| 01 43 01 44 01 45 01 46 | 01 47 01 48 01 49 01 4a |.C.D.E.F|.G.H.I.J|
|00001390| 01 4b 01 4c 01 4d 01 4e | 01 4f 01 50 01 51 01 52 |.K.L.M.N|.O.P.Q.R|
|000013a0| 01 53 01 54 01 55 01 56 | 01 57 01 58 01 59 01 5a |.S.T.U.V|.W.X.Y.Z|
|000013b0| 00 00 00 00 00 00 00 c0 | 00 00 00 00 00 00 00 18 |........|........|
|000013c0| 00 00 00 2a 00 00 00 2c | 00 00 00 6f 00 00 00 82 |...*...,|...o....|
|000013d0| 00 00 00 85 00 00 00 91 | 00 00 00 99 00 00 00 a4 |........|........|
|000013e0| 00 00 00 ad 00 00 00 b6 | 00 00 00 ba 00 00 00 bc |........|........|
|000013f0| 00 00 00 fe 00 00 01 22 | 00 00 01 41 00 00 01 62 |......."|...A...b|
|00001400| 00 00 01 82 00 00 01 e3 | 00 00 02 19 00 00 02 7c |........|.......||
|00001410| 00 00 02 c1 00 00 02 c5 | 00 00 02 ed 00 00 02 f0 |........|........|
|00001420| 00 00 03 3e 00 00 03 41 | 00 00 03 43 00 00 03 45 |...>...A|...C...E|
|00001430| 00 00 03 a4 00 00 03 bf | 00 00 03 c2 00 00 03 ec |........|........|
|00001440| 00 00 03 f0 00 00 04 35 | 00 00 04 39 00 00 04 3f |.......5|...9...?|
|00001450| 00 00 04 43 00 00 04 a0 | 00 00 04 fe 00 00 05 0e |...C....|........|
|00001460| 00 00 05 12 00 00 05 15 | 00 00 05 5d 00 00 05 60 |........|...]...`|
|00001470| 00 00 05 62 00 00 05 64 | 00 00 00 08 00 00 00 01 |...b...d|........|
|00001480| 00 01 00 01 00 00 00 20 | 00 01 00 16 00 16 00 0a |....... |........|
|00001490| 00 00 00 14 00 14 00 0a | 00 00 00 14 00 14 00 0e |........|........|
|000014a0| 00 00 00 14 00 14 00 24 | 00 00 00 10 00 02 05 54 |.......$|.......T|
|000014b0| 69 6d 65 73 07 43 6f 75 | 72 69 65 72 00 00 00 04 |imes.Cou|rier....|
|000014c0| 00 00 ff ff 00 00 01 00 | 00 00 03 c4 00 00 02 c4 |........|........|
|000014d0| 00 00 01 22 00 32 41 40 | 0a a8 00 00 00 1c 01 22 |...".2A@|......."|
|000014e0| 00 0c 70 61 67 65 00 00 | 00 6a 63 68 70 74 00 00 |..page..|.jchpt..|
|000014f0| 00 76 62 6f 6f 6b 00 00 | 00 82 54 4f 43 20 00 00 |.vbook..|..TOC ..|
|00001500| 00 8e 54 4f 43 23 00 00 | 00 9a 49 44 58 20 00 00 |..TOC#..|..IDX ..|
|00001510| 00 a6 49 44 58 23 00 00 | 00 b2 49 44 58 50 00 00 |..IDX#..|..IDXP..|
|00001520| 00 be 50 41 52 41 00 00 | 00 ca 46 4f 4c 4f 00 00 |..PARA..|..FOLO..|
|00001530| 00 d6 44 43 46 4e 00 00 | 00 e2 44 43 46 23 00 00 |..DCFN..|..DCF#..|
|00001540| 00 ee 46 4f 4c 53 00 00 | 00 fa 03 e8 ff ff 00 00 |..FOLS..|........|
|00001550| 00 00 00 32 41 14 03 e8 | ff ff 00 00 00 14 00 32 |...2A...|.......2|
|00001560| 3e f8 03 e8 ff ff 00 00 | 00 6a 00 32 3f 04 03 e8 |>.......|.j.2?...|
|00001570| ff ff 00 00 00 88 00 00 | 00 00 03 e8 ff ff 00 00 |........|........|
|00001580| 00 8c 00 00 00 00 03 e8 | ff ff 00 00 00 92 00 00 |........|........|
|00001590| 00 00 03 e8 ff ff 00 00 | 01 6e 00 00 00 00 03 e8 |........|.n......|
|000015a0| ff ff 00 00 01 b0 00 00 | 00 00 03 e8 ff ff 00 00 |........|........|
|000015b0| 01 b4 00 32 3e 8c 03 e8 | ff ff 00 00 02 78 00 32 |...2>...|.....x.2|
|000015c0| 3f 00 03 e8 ff ff 00 00 | 02 84 00 32 3e 80 03 e8 |?.......|...2>...|
|000015d0| ff ff 00 00 02 a8 00 32 | 3e 88 03 e8 ff ff 00 00 |.......2|>.......|
|000015e0| 02 bc 00 32 3e 90 00 00 | 00 00 00 00 00 00 00 00 |...2>...|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+